package com.utils

import org.apache.commons.pool2.impl.GenericObjectPoolConfig
import redis.clients.jedis.JedisPool

/**
  * ClassName:JedisPools
  * Package:com.utils
  * Desciption:
  *
  * @date:2019 /8/24 0:40
  * @author:17611219021 @sina.cn
  */
object JedisPools {
  private val jedisPool = new JedisPool(new GenericObjectPoolConfig(),"node01",6379)
  def getJedis()=jedisPool.getResource

}
